package com.star.sso.repository.model;

import com.star.common.core.context.BaseContext;
import com.star.common.core.contract.BaseRepository;
import com.star.common.core.contract.Model;
import com.star.sso.repository.service.SysRoleDataPermissionRepository;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 角色菜单表(SysRoleDataPermission)领域类
 *
 * @author zhouhengzhe
 * @since 2024-01-08 23:53:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class SysRoleDataPermissionBO extends Model {

    @Schema(description = "系统自增ID")
    private String id;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    @Schema(description = "创建人编码")
    private String createBy;
    @Schema(description = "创建人")
    private String creator;
    @Schema(description = "更新人编码")
    private String updateBy;
    @Schema(description = "更新人")
    private String updater;
    @Schema(description = "角色ID")
    private String roleId;
    @Schema(description = "系统ID")
    private String systemId;
    @Schema(description = "资源ID")
    private String permissionId;

    public static SysRoleDataPermissionRepository repository() {
        return BaseRepository.of(SysRoleDataPermissionBO.class);
    }
}
